//
//  RegistViewController.h
//  TribleWar
//
//  Created by ＣＳＴ ＣＳＴ on 8/10/12.
//  Copyright (c) 2012 ＣＳＴ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CallbackDelegate.h"

@interface RegistViewController : UIViewController<CallbackDelegate>
{
    id <CallbackDelegate> callbackDelegate;
}
@property (nonatomic, weak) IBOutlet UITextField *account;
@property (nonatomic, weak) IBOutlet UITextField *pwd;
@property (nonatomic, weak) IBOutlet UITextField *repwd;
@property (nonatomic, weak) IBOutlet UIButton *registBtn;
@property (nonatomic, weak) IBOutlet UIButton *loginBtn;
@property (nonatomic, weak) IBOutlet UILabel *status;
@property (nonatomic, strong) NSString  *connectStatus;


- (IBAction)onRegist;
- (IBAction)onLogin:(id)sender;
- (BOOL)isValid:(NSString *)account password:(NSString *)pwd repassword:(NSString *)repwd;

@end
